from django import forms
from artSightWorld.apps.base.models import *
from django.forms.extras.widgets import SelectDateWidget 

class SearchForm(forms.Form):
	photographer = forms.CharField(max_length=100, label="Photographe", required=False)
	title = forms.CharField(max_length=100, label="Titre photo", required=False)
	dateTakenBegin = forms.DateField(widget=SelectDateWidget(years=range(1980, 2013)), label="Prise entre le", required=False)
	dateTakenEnd = forms.DateField(widget=SelectDateWidget(years=range(1980, 2013)), label="Et le", required=False)
	datePostedBegin = forms.DateField(widget=SelectDateWidget(years=range(1980, 2013)), label="Postee entre le", required=False)
	datePostedEnd = forms.DateField(widget=SelectDateWidget(years=range(1980, 2013)), label="Et le", required=False)
	country = forms.CharField(max_length=100, label="Pays", required=False)
	city = forms.CharField(max_length=100, label="Ville", required=False)